package com.abaaba.project2.bean.vo.wx;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author Hedgehog
 * @Date 2021/6/8 10:47
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WxSearchIndexVO {
    /**
     * errno : 0
     * data : {"defaultKeyword":{"id":6,"keyword":"520元礼包抢先领","url":"","isHot":true,"isDefault":true,"sortOrder":1,"addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false},"hotKeywordList":[{"id":6,"keyword":"520元礼包抢先领","url":"","isHot":true,"isDefault":true,"sortOrder":1,"addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false}],"historyKeywordList":[{"keyword":"111"},{"keyword":"灯"},{"keyword":"夏凉被"},{"keyword":"1"},{"keyword":"dsa"},{"keyword":"520元礼包抢先领"},{"keyword":"冲啊"},{"keyword":"看"}]}
     * errmsg : 成功
     */




        /**
         * defaultKeyword : {"id":6,"keyword":"520元礼包抢先领","url":"","isHot":true,"isDefault":true,"sortOrder":1,"addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false}
         * hotKeywordList : [{"id":6,"keyword":"520元礼包抢先领","url":"","isHot":true,"isDefault":true,"sortOrder":1,"addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false}]
         * historyKeywordList : [{"keyword":"111"},{"keyword":"灯"},{"keyword":"夏凉被"},{"keyword":"1"},{"keyword":"dsa"},{"keyword":"520元礼包抢先领"},{"keyword":"冲啊"},{"keyword":"看"}]
         */

        /*private DefaultKeywordBean defaultKeyword;
        private List<HotKeywordListBean> hotKeywordList;
        private List<HistoryKeywordListBean> historyKeywordList;

        public static class DefaultKeywordBean {
            *//**
             * id : 6
             * keyword : 520元礼包抢先领
             * url :
             * isHot : true
             * isDefault : true
             * sortOrder : 1
             * addTime : 2018-02-01 00:00:00
             * updateTime : 2018-02-01 00:00:00
             * deleted : false
             *//*

            private int id;
            private String keyword;
            private String url;
            private boolean isHot;
            private boolean isDefault;
            private int sortOrder;
            private String addTime;
            private String updateTime;
            private boolean deleted;
        }

        public static class HotKeywordListBean {

            private int id;
            private String keyword;
            private String url;
            private boolean isHot;
            private boolean isDefault;
            private int sortOrder;
            private String addTime;
            private String updateTime;
            private boolean deleted;


        }

        public static class HistoryKeywordListBean {


            private String keyword;

        }*/






/*

      *
     * defaultKeyword : {"id":6,"keyword":"520元礼包抢先领","url":"","isHot":true,"isDefault":true,"sortOrder":1,"addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false}
     * hotKeywordList : [{"id":6,"keyword":"520元礼包抢先领","url":"","isHot":true,"isDefault":true,"sortOrder":1,"addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false}]
     * historyKeywordList : [{"keyword":"111"},{"keyword":"灯"},{"keyword":"夏凉被"},{"keyword":"1"},{"keyword":"dsa"},{"keyword":"520元礼包抢先领"},{"keyword":"冲啊"},{"keyword":"看"}]
*/


    private DefaultKeywordBean defaultKeyword;
    private List<HotKeywordListBean> hotKeywordList;
    private List<HistoryKeywordListBean> historyKeywordList;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class DefaultKeywordBean {

        private int id;
        private String keyword;
        private String url;
        private boolean isHot;
        private boolean isDefault;
        private int sortOrder;
        private String addTime;
        private String updateTime;
        private boolean deleted;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class HotKeywordListBean {

        private int id;
        private String keyword;
        private String url;
        private boolean isHot;
        private boolean isDefault;
        private int sortOrder;
        private String addTime;
        private String updateTime;
        private boolean deleted;

    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class HistoryKeywordListBean {

        private String keyword;

    }
}
